package Unused;

import GameObjects.Player;

import com.jme.scene.Node;


public class VehicleRotateLeftAction {
	private Player ds;
	VehicleRotateLeftAction(Node n)
	{
		ds = (Player)n;
	
	}
	 public void performAction(InputActionEvent evt) {
	        if (vehicle.getVelocity() < 0) {
	            incr.fromAngleNormalAxis(vehicle.getTurnSpeed() * evt.getTime(), upAxis);
	        } else {
	            incr.fromAngleNormalAxis(-vehicle.getTurnSpeed() * evt.getTime(), upAxis);
	        }
	        vehicle.getLocalRotation().fromRotationMatrix(
	                incr.mult(vehicle.getLocalRotation().toRotationMatrix(tempMa),
	                        tempMb));
	        vehicle.getLocalRotation().normalize();
	 }
}
